<?php
class Zendvn_View_Helper_CmsButton extends Zend_View_Helper_Abstract{
	
	public function cmsButton($name,$link,$imgLink, $type = 'link'){
		
		if($type == 'link'){
			$aTag = '<a href="' . $link . '">';
		}else{
			$aTag = '<a href="#" onclick="OnSubmitForm(\'' . $link . '\')">';
		}
		
		$xhtml = '<div class="toolbar-button">
					' . $aTag . '  
						<img src="'. $imgLink . '"> 
						<br>
						' . $name . '
					</a>
				</div>';
		return $xhtml;
	}
}